package org.amicofragile.factorial

object Factorial {
	def fact(index: Int): Int = {
		index match {
			case 1 => 1
			case _ => index * fact (index - 1)
		}
	  }
}